package valueobject

func (p *Patch[T]) IsAdd() bool {
	return p.Option == PatchOptionAdd
}

func (p *Patch[T]) IsRemove() bool {
	return p.Option == PatchOptionRemove
}

func (p *Patch[T]) IsReplace() bool {
	return p.Option == PatchOptionReplace
}

func (p *Patch[T]) IsMove() bool {
	return p.Option == PatchOptionMove
}

func (p *Patch[T]) IsCopy() bool {
	return p.Option == PatchOptionCopy
}

func (p *Patch[T]) GetPath() string {
	return p.Path
}

func (p *Patch[T]) GetFrom() string {
	return p.From
}

func (p *Patch[T]) GetValue() any {
	return p.Value
}
